Public Class frmAviso
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
   Friend WithEvents Label1 As System.Windows.Forms.Label
   Friend WithEvents Label2 As System.Windows.Forms.Label
   Friend WithEvents Label3 As System.Windows.Forms.Label
   <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
      Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmAviso))
      Me.Label1 = New System.Windows.Forms.Label
      Me.Label2 = New System.Windows.Forms.Label
      Me.Label3 = New System.Windows.Forms.Label
      Me.SuspendLayout()
      '
      'Label1
      '
      Me.Label1.BackColor = System.Drawing.Color.Transparent
      Me.Label1.Font = New System.Drawing.Font("Verdana", 8.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
      Me.Label1.ForeColor = System.Drawing.Color.MidnightBlue
      Me.Label1.Location = New System.Drawing.Point(6, 6)
      Me.Label1.Name = "Label1"
      Me.Label1.Size = New System.Drawing.Size(128, 16)
      Me.Label1.TabIndex = 0
      Me.Label1.Text = "Usted Tiene:"
      '
      'Label2
      '
      Me.Label2.BackColor = System.Drawing.Color.Transparent
      Me.Label2.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
      Me.Label2.ForeColor = System.Drawing.Color.MidnightBlue
      Me.Label2.Location = New System.Drawing.Point(8, 40)
      Me.Label2.Name = "Label2"
      Me.Label2.Size = New System.Drawing.Size(168, 24)
      Me.Label2.TabIndex = 1
      Me.Label2.Text = "> 12 Requerimientos Pendientes de Recibir"
      '
      'Label3
      '
      Me.Label3.BackColor = System.Drawing.Color.Transparent
      Me.Label3.ForeColor = System.Drawing.Color.MidnightBlue
      Me.Label3.Location = New System.Drawing.Point(8, 80)
      Me.Label3.Name = "Label3"
      Me.Label3.Size = New System.Drawing.Size(168, 24)
      Me.Label3.TabIndex = 2
      Me.Label3.Text = "> 4 Traspasos Pendientes de Recibir"
      '
      'frmAviso
      '
      Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
      Me.BackgroundImage = CType(resources.GetObject("$this.BackgroundImage"), System.Drawing.Image)
      Me.ClientSize = New System.Drawing.Size(182, 118)
      Me.ControlBox = False
      Me.Controls.Add(Me.Label3)
      Me.Controls.Add(Me.Label2)
      Me.Controls.Add(Me.Label1)
      Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
      Me.Location = New System.Drawing.Point(1000, 1000)
      Me.MaximumSize = New System.Drawing.Size(182, 118)
      Me.MinimumSize = New System.Drawing.Size(182, 118)
      Me.Name = "frmAviso"
      Me.TopMost = True
      Me.ResumeLayout(False)

   End Sub

#End Region

   Private mintLeftPos As Integer
   Private mintTopPos As Integer
   Private mfrmMyParent As Form

   Public WriteOnly Property LeftPos() As Integer
      Set(ByVal Value As Integer)
         mintLeftPos = Value
      End Set
   End Property

   Public WriteOnly Property TopPos() As Integer
      Set(ByVal Value As Integer)
         mintTopPos = Value
      End Set
   End Property

   Public WriteOnly Property MyParent() As Form
      Set(ByVal Value As Form)
         mfrmMyParent = Value
      End Set
   End Property

   Private Sub frmAviso_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Click
      Me.Close()
   End Sub

   Private Sub frmAviso_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

      Dim intCont As Integer

      Me.Location = New Point(1000, 1000)
      Me.Show()

      Application.DoEvents()

      For intCont = 1 To 160
         Application.DoEvents()

         Me.Location = New Point(mintLeftPos, mintTopPos - intCont)
         Me.Refresh()

         Me.Opacity = 1
         Me.Refresh()

      Next

   End Sub

   Private Sub frmAviso_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed
      CType(mfrmMyParent, frmMain).AvisoPendiente = False
   End Sub

End Class
